package com.car.service;

import com.car.dao.UserDao;
import com.car.domain.User;

import java.util.List;

public class UserDaoImpl implements UserDao {
    /**
     * 新增
     *
     * @param user 泛型
     * @return
     */
    @Override
    public int add(User user) throws Exception {
        return 0;
    }

    /**
     * 删除
     *
     * @param id 主键ID
     * @return
     */
    @Override
    public int delete(int id) throws Exception {
        return 0;
    }

    /**
     * 修改
     *
     * @param user 泛型
     * @return
     */
    @Override
    public int update(User user) throws Exception {
        return 0;
    }

    /**
     * 通过主键ID查询
     *
     * @param id 主键 id
     * @return 实体类
     */
    @Override
    public User queryById(int id) throws Exception {
        return null;
    }

    /**
     * @return
     */
    @Override
    public List<User> queryAll() throws Exception {
        return null;
    }

    @Override
    public User findByPhone(String phone) {
        return null;
    }

    @Override
    public User login(String phone, String password) {
        return null;
    }
}
